\hypertarget{fatfs__sup_8h}{}\section{fatfs.\+sup/fatfs\+\_\+sup.h File Reference}
\label{fatfs__sup_8h}\index{fatfs.\+sup/fatfs\+\_\+sup.\+h@{fatfs.\+sup/fatfs\+\_\+sup.\+h}}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} \hyperlink{send_8c_a435d1572bf3f880d55459d9805097f62}{uint32\+\_\+t} \hyperlink{fatfs__sup_8h_ae7b9417320aaaa1c1dfb229cad6669d8}{tm\+\_\+to\+\_\+fat} (\hyperlink{time_8h_a2fea857c30e2c901566fcf45fac68ac5}{tm\+\_\+t} $\ast$t)
\begin{DoxyCompactList}\small\item\em F\+AT time structer reference. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} \hyperlink{integer_8h_ad342ac907eb044443153a22f964bf0af}{D\+W\+O\+RD} \hyperlink{fatfs__sup_8h_ae0f1746ad69d0d4b90cba250c6774ca8}{get\+\_\+fattime} (void)
\begin{DoxyCompactList}\small\item\em Read time and convert to F\+A\+T32 time. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{fatfs__sup_8h_ab3509aecf1844c84f1797e5b567d531c}{put\+\_\+rc} (int rc)
\begin{DoxyCompactList}\small\item\em display Fat\+Fs return code as ascii string \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} int \hyperlink{fatfs__sup_8h_a2bfd82a70117cdb8941b6b0a2c069dbd}{fatfs\+\_\+scan\+\_\+files} (char $\ast$path)
\begin{DoxyCompactList}\small\item\em Use were \hyperlink{structFILINFO}{F\+I\+L\+I\+N\+FO} structure can be share in many functions See\+: fatfs\+\_\+alloc\+\_\+filinfo(), \hyperlink{fatfs__sup_8c_a2bfd82a70117cdb8941b6b0a2c069dbd}{fatfs\+\_\+scan\+\_\+files()} and \hyperlink{fatfs__tests_8c_a5306e261e84e6700704633a53153857c}{fatfs\+\_\+ls()} \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} char $\ast$ \hyperlink{fatfs__sup_8h_ae9c5ed10edd2df490945033c4ddfbeab}{fatfs\+\_\+fstype} (int type)
\begin{DoxyCompactList}\small\item\em return a string with the file system type \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{fatfs__sup_8h_ad7d2063fab39190a7288bfa7cb647b46}{fatfs\+\_\+status} (char $\ast$ptr)
\begin{DoxyCompactList}\small\item\em Compute space used, number of directories and files contained used by a drive. \end{DoxyCompactList}\item 
\hyperlink{earth2wireframe_8c_ad0fe97585b8891f5e4f2b9a6426330a4}{M\+E\+M\+S\+P\+A\+CE} void \hyperlink{fatfs__sup_8h_a11c6644c2b989d1ac2492b30b80e4ead}{fatfs\+\_\+filinfo\+\_\+list} (\hyperlink{structFILINFO}{F\+I\+L\+I\+N\+FO} $\ast$\hyperlink{network_8c_a1202cd63c360958e6272f9a20fa90f8b}{info})
\begin{DoxyCompactList}\small\item\em Display \hyperlink{structFILINFO}{F\+I\+L\+I\+N\+FO} structure in a readable format. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hyperlink{integer_8h_ad342ac907eb044443153a22f964bf0af}{D\+W\+O\+RD} \hyperlink{fatfs__sup_8h_a1e9c5ddcfdf89c9a42c96ee1d2196876}{Acc\+Size}
\begin{DoxyCompactList}\small\item\em Total file space used. \end{DoxyCompactList}\item 
\hyperlink{integer_8h_a197942eefa7db30960ae396d68339b97}{W\+O\+RD} \hyperlink{fatfs__sup_8h_a8886578bc67fc71837328a1ee237d10c}{Acc\+Files}
\begin{DoxyCompactList}\small\item\em Total number or Files and Directories. \end{DoxyCompactList}\item 
\hyperlink{integer_8h_a197942eefa7db30960ae396d68339b97}{W\+O\+RD} \hyperlink{fatfs__sup_8h_a4fb5ebb5ee82d1ddf3fdcf88329dd5d3}{Acc\+Dirs}
\item 
\hyperlink{structFATFS}{F\+A\+T\+FS} \hyperlink{fatfs__sup_8h_aae427cc909a4b5993032934d85fd8c31}{Fatfs} \mbox{[}\hyperlink{ffconf_8h_a366da9a40c8ceb3103a6b72ca02b9969}{\+\_\+\+V\+O\+L\+U\+M\+ES}\mbox{]}
\begin{DoxyCompactList}\small\item\em Fat\+Fs Drive Volumes. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Function Documentation}
\index{fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}!fatfs\+\_\+filinfo\+\_\+list@{fatfs\+\_\+filinfo\+\_\+list}}
\index{fatfs\+\_\+filinfo\+\_\+list@{fatfs\+\_\+filinfo\+\_\+list}!fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}}
\subsubsection[{\texorpdfstring{fatfs\+\_\+filinfo\+\_\+list(\+F\+I\+L\+I\+N\+F\+O $\ast$info)}{fatfs_filinfo_list(FILINFO *info)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void fatfs\+\_\+filinfo\+\_\+list (
\begin{DoxyParamCaption}
\item[{{\bf F\+I\+L\+I\+N\+FO} $\ast$}]{info}
\end{DoxyParamCaption}
)}\hypertarget{fatfs__sup_8h_a11c6644c2b989d1ac2492b30b80e4ead}{}\label{fatfs__sup_8h_a11c6644c2b989d1ac2492b30b80e4ead}


Display \hyperlink{structFILINFO}{F\+I\+L\+I\+N\+FO} structure in a readable format. 


\begin{DoxyItemize}
\item Credit\+: part of Fat\+Fs avr example project (C)ChaN, 2013.
\item Example\+: \begin{DoxyVerb}/// ----A 2014/10/16 00:39        14    test2.txt  
/// D---- 2014/10/12 21:29         0          tmp 
/// \end{DoxyVerb}
 \begin{DoxyVerb}@param[in] : FILINFO pointer
@return  void  \end{DoxyVerb}
 
\end{DoxyItemize}

Definition at line 335 of file fatfs\+\_\+sup.\+c.



Referenced by fatfs\+\_\+ls().

\index{fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}!fatfs\+\_\+fstype@{fatfs\+\_\+fstype}}
\index{fatfs\+\_\+fstype@{fatfs\+\_\+fstype}!fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}}
\subsubsection[{\texorpdfstring{fatfs\+\_\+fstype(int type)}{fatfs_fstype(int type)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} char$\ast$ fatfs\+\_\+fstype (
\begin{DoxyParamCaption}
\item[{int}]{type}
\end{DoxyParamCaption}
)}\hypertarget{fatfs__sup_8h_ae9c5ed10edd2df490945033c4ddfbeab}{}\label{fatfs__sup_8h_ae9c5ed10edd2df490945033c4ddfbeab}


return a string with the file system type 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em type} & file system type \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
string with file system type 
\end{DoxyReturn}


Definition at line 232 of file fatfs\+\_\+sup.\+c.



Referenced by fatfs\+\_\+status().

\index{fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}!fatfs\+\_\+scan\+\_\+files@{fatfs\+\_\+scan\+\_\+files}}
\index{fatfs\+\_\+scan\+\_\+files@{fatfs\+\_\+scan\+\_\+files}!fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}}
\subsubsection[{\texorpdfstring{fatfs\+\_\+scan\+\_\+files(char $\ast$path)}{fatfs_scan_files(char *path)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} int fatfs\+\_\+scan\+\_\+files (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{path}
\end{DoxyParamCaption}
)}\hypertarget{fatfs__sup_8h_a2bfd82a70117cdb8941b6b0a2c069dbd}{}\label{fatfs__sup_8h_a2bfd82a70117cdb8941b6b0a2c069dbd}


Use were \hyperlink{structFILINFO}{F\+I\+L\+I\+N\+FO} structure can be share in many functions See\+: fatfs\+\_\+alloc\+\_\+filinfo(), \hyperlink{fatfs__sup_8c_a2bfd82a70117cdb8941b6b0a2c069dbd}{fatfs\+\_\+scan\+\_\+files()} and \hyperlink{fatfs__tests_8c_a5306e261e84e6700704633a53153857c}{fatfs\+\_\+ls()} 

Allocate \hyperlink{structFILINFO}{F\+I\+L\+I\+N\+FO} structure and optional long file name buffer


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em allocate} & If allocate is true use calloc otherwise return static \+\_\+\+\_\+filinfo \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
fatfs\+\_\+free\+\_\+filinfo() 

\hyperlink{fatfs__sup_8c_a2bfd82a70117cdb8941b6b0a2c069dbd}{fatfs\+\_\+scan\+\_\+files()} 

\hyperlink{fatfs__tests_8c_a5306e261e84e6700704633a53153857c}{fatfs\+\_\+ls()} 
\end{DoxySeeAlso}
\begin{DoxyReturn}{Returns}
\hyperlink{structFILINFO}{F\+I\+L\+I\+N\+FO} $\ast$ on success 

N\+U\+LL on error Compute space used, number of directories and files contained under a specified directory
\end{DoxyReturn}

\begin{DoxyItemize}
\item Credit\+: part of Fat\+Fs avr example project (C)ChaN, 2013
\end{DoxyItemize}


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em path} & \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{ff_8c_aeb607fa4b05d127d971ff40f143bac66}{f\+\_\+opendir()} 

\hyperlink{ff_8c_ae9647e339708c3d803db8de141986d96}{f\+\_\+readdir()} 

\hyperlink{fatfs__sup_8c_a4fb5ebb5ee82d1ddf3fdcf88329dd5d3}{Acc\+Dirs}\+: Total number of directories 

\hyperlink{fatfs__sup_8c_a8886578bc67fc71837328a1ee237d10c}{Acc\+Files}\+: Total number of Files 

\hyperlink{fatfs__sup_8c_a1e9c5ddcfdf89c9a42c96ee1d2196876}{Acc\+Size}\+: Total size of all files 
\end{DoxySeeAlso}
\begin{DoxyReturn}{Returns}
0 if no error 

Faf\+Fs error code 
\end{DoxyReturn}


Definition at line 194 of file fatfs\+\_\+sup.\+c.



Referenced by fatfs\+\_\+scan\+\_\+files(), and fatfs\+\_\+status().

\index{fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}!fatfs\+\_\+status@{fatfs\+\_\+status}}
\index{fatfs\+\_\+status@{fatfs\+\_\+status}!fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}}
\subsubsection[{\texorpdfstring{fatfs\+\_\+status(char $\ast$ptr)}{fatfs_status(char *ptr)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void fatfs\+\_\+status (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{ptr}
\end{DoxyParamCaption}
)}\hypertarget{fatfs__sup_8h_ad7d2063fab39190a7288bfa7cb647b46}{}\label{fatfs__sup_8h_ad7d2063fab39190a7288bfa7cb647b46}


Compute space used, number of directories and files contained used by a drive. 


\begin{DoxyItemize}
\item Credit\+: part of Fat\+Fs avr example project (C)ChaN, 2013
\end{DoxyItemize}


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em ptr} & Drive path like \char`\"{}/\char`\"{} \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{ff_8c_a72098afbbef7ff8b850bacfc721d6bd0}{f\+\_\+getfree()} drive \hyperlink{system_8c_a0f8c52d1c359b700088f8417b48e467b}{free} space 

\hyperlink{fatfs__sup_8c_a2bfd82a70117cdb8941b6b0a2c069dbd}{fatfs\+\_\+scan\+\_\+files()} 

\hyperlink{fatfs__sup_8c_a4fb5ebb5ee82d1ddf3fdcf88329dd5d3}{Acc\+Dirs}\+: Total number of directories 

\hyperlink{fatfs__sup_8c_a8886578bc67fc71837328a1ee237d10c}{Acc\+Files}\+: Total number of Files 

\hyperlink{fatfs__sup_8c_a1e9c5ddcfdf89c9a42c96ee1d2196876}{Acc\+Size}\+: Total size of all files 
\end{DoxySeeAlso}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 268 of file fatfs\+\_\+sup.\+c.



Referenced by fatfs\+\_\+tests(), mmc\+\_\+init(), and mmc\+\_\+test().

\index{fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}!get\+\_\+fattime@{get\+\_\+fattime}}
\index{get\+\_\+fattime@{get\+\_\+fattime}!fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}}
\subsubsection[{\texorpdfstring{get\+\_\+fattime(void)}{get_fattime(void)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} {\bf D\+W\+O\+RD} get\+\_\+fattime (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\hypertarget{fatfs__sup_8h_ae0f1746ad69d0d4b90cba250c6774ca8}{}\label{fatfs__sup_8h_ae0f1746ad69d0d4b90cba250c6774ca8}


Read time and convert to F\+A\+T32 time. 

\begin{DoxyReturn}{Returns}
F\+A\+T32 time. 
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\hyperlink{fatfs__sup_8c_ae7b9417320aaaa1c1dfb229cad6669d8}{tm\+\_\+to\+\_\+fat()}. 
\end{DoxySeeAlso}


Definition at line 130 of file fatfs\+\_\+sup.\+c.

\index{fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}!put\+\_\+rc@{put\+\_\+rc}}
\index{put\+\_\+rc@{put\+\_\+rc}!fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}}
\subsubsection[{\texorpdfstring{put\+\_\+rc(int rc)}{put_rc(int rc)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} void put\+\_\+rc (
\begin{DoxyParamCaption}
\item[{int}]{rc}
\end{DoxyParamCaption}
)}\hypertarget{fatfs__sup_8h_ab3509aecf1844c84f1797e5b567d531c}{}\label{fatfs__sup_8h_ab3509aecf1844c84f1797e5b567d531c}


display Fat\+Fs return code as ascii string 

Credit\+: Part of Fat\+Fs avr example project (C)ChaN, 2013 
\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em rc} & Fat\+Fs status return code \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Definition at line 145 of file fatfs\+\_\+sup.\+c.



Referenced by fatfs\+\_\+ls(), fatfs\+\_\+status(), fatfs\+\_\+tests(), mkfs(), and mmc\+\_\+init().

\index{fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}!tm\+\_\+to\+\_\+fat@{tm\+\_\+to\+\_\+fat}}
\index{tm\+\_\+to\+\_\+fat@{tm\+\_\+to\+\_\+fat}!fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}}
\subsubsection[{\texorpdfstring{tm\+\_\+to\+\_\+fat(tm\+\_\+t $\ast$t)}{tm_to_fat(tm_t *t)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf M\+E\+M\+S\+P\+A\+CE} {\bf uint32\+\_\+t} tm\+\_\+to\+\_\+fat (
\begin{DoxyParamCaption}
\item[{{\bf tm\+\_\+t} $\ast$}]{t}
\end{DoxyParamCaption}
)}\hypertarget{fatfs__sup_8h_ae7b9417320aaaa1c1dfb229cad6669d8}{}\label{fatfs__sup_8h_ae7b9417320aaaa1c1dfb229cad6669d8}


F\+AT time structer reference. 

\begin{DoxySeeAlso}{See also}
\hyperlink{rtc_8h}{rtc.\+h} 

\href{http://lxr.free-electrons.com/source/fs/fat/misc.c}{\tt http\+://lxr.\+free-\/electrons.\+com/source/fs/fat/misc.\+c} \begin{DoxyVerb}/// typedef struct
/// {
///     WORD   year;                                  /* 2000..2099 */
///     BYTE   month;                                 /* 1..12 */
///     BYTE   mday;                                  /* 1.. 31 */
///     BYTE   wday;                                  /* 1..7 */
///     BYTE   hour;                                  /* 0..23 */
///     BYTE   min;                                   /* 0..59 */
///     BYTE   sec;                                   /* 0..59 */
/// } RTC;
/// \end{DoxyVerb}
 Convert Linux \hyperlink{posix_8h_a1c3d85ae80df5590fa314acffd8bf840}{P\+O\+S\+IX} \hyperlink{time_8h_a2fea857c30e2c901566fcf45fac68ac5}{tm\+\_\+t} $\ast$ to F\+A\+T32 \hyperlink{time_8h_a32b1cbd925752f0cd61d202bbe204a69}{time}.
\end{DoxySeeAlso}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em t} & P\+O\+S\+IX struct tm $\ast$ to convert.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
F\+A\+T32 time. 
\end{DoxyReturn}


Definition at line 113 of file fatfs\+\_\+sup.\+c.



Referenced by get\+\_\+fattime(), and rtc\+\_\+read().



\subsection{Variable Documentation}
\index{fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}!Acc\+Dirs@{Acc\+Dirs}}
\index{Acc\+Dirs@{Acc\+Dirs}!fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}}
\subsubsection[{\texorpdfstring{Acc\+Dirs}{AccDirs}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf W\+O\+RD} Acc\+Dirs}\hypertarget{fatfs__sup_8h_a4fb5ebb5ee82d1ddf3fdcf88329dd5d3}{}\label{fatfs__sup_8h_a4fb5ebb5ee82d1ddf3fdcf88329dd5d3}


Definition at line 164 of file fatfs\+\_\+sup.\+c.



Referenced by fatfs\+\_\+scan\+\_\+files(), and fatfs\+\_\+status().

\index{fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}!Acc\+Files@{Acc\+Files}}
\index{Acc\+Files@{Acc\+Files}!fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}}
\subsubsection[{\texorpdfstring{Acc\+Files}{AccFiles}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf W\+O\+RD} Acc\+Files}\hypertarget{fatfs__sup_8h_a8886578bc67fc71837328a1ee237d10c}{}\label{fatfs__sup_8h_a8886578bc67fc71837328a1ee237d10c}


Total number or Files and Directories. 



Definition at line 164 of file fatfs\+\_\+sup.\+c.



Referenced by fatfs\+\_\+scan\+\_\+files(), and fatfs\+\_\+status().

\index{fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}!Acc\+Size@{Acc\+Size}}
\index{Acc\+Size@{Acc\+Size}!fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}}
\subsubsection[{\texorpdfstring{Acc\+Size}{AccSize}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf D\+W\+O\+RD} Acc\+Size}\hypertarget{fatfs__sup_8h_a1e9c5ddcfdf89c9a42c96ee1d2196876}{}\label{fatfs__sup_8h_a1e9c5ddcfdf89c9a42c96ee1d2196876}


Total file space used. 



Definition at line 161 of file fatfs\+\_\+sup.\+c.



Referenced by fatfs\+\_\+scan\+\_\+files(), and fatfs\+\_\+status().

\index{fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}!Fatfs@{Fatfs}}
\index{Fatfs@{Fatfs}!fatfs\+\_\+sup.\+h@{fatfs\+\_\+sup.\+h}}
\subsubsection[{\texorpdfstring{Fatfs}{Fatfs}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf F\+A\+T\+FS} Fatfs\mbox{[}{\bf \+\_\+\+V\+O\+L\+U\+M\+ES}\mbox{]}}\hypertarget{fatfs__sup_8h_aae427cc909a4b5993032934d85fd8c31}{}\label{fatfs__sup_8h_aae427cc909a4b5993032934d85fd8c31}


Fat\+Fs Drive Volumes. 



Definition at line 43 of file fatfs\+\_\+sup.\+c.



Referenced by mmc\+\_\+init().

